package com.github.qianhe.sdk;

import org.apache.http.client.HttpClient;

/**
 * 常量
 */
public class QHConstants {

    public static enum SignType {
        MD5, HMACSHA256
    }

    public static final String DOMAIN_API = "qianhe.vipluo.com";

    public static final String FAIL     = "FAIL";
    public static final String SUCCESS  = "SUCCESS";
    public static final String HMACSHA256 = "HMAC-SHA256";
    public static final String MD5 = "MD5";

    public static final String FIELD_SIGN = "sign";
    public static final String FIELD_SIGN_TYPE = "sign_type";

    public static final String FIELD_APPID = "app_key";
    public static final String FIELD_APP_SECRET = "app_secret";
    public static final String FIELD_TIME_STAMP = "time_stamp";
    public static final String FIELD_NONCE_STR = "nonce_str";

    public static final String PARAM_SEPARATOR = "?";
    public static final String FIELD_SEPARATOR = "&";
    public static final String VALUE_SEPARATOR = "=";

    public static final String CHARSET_NAME = "UTF-8";

    /**
     * 查询阅读任务列表
     *
     * @param data 字节数组
     * @return 结果字符串
     */
    public static final String GET_TASK_LIST_URL_SUFFIX = "/business/sdk/v1/read/get_task_list";

    /**
     * 一键领取
     **/
    public static final String ONE_CLICK_COLLECTION_URL_SUFFIX = "/business/sdk/v1/read/one_click_collection";

    /**
     * 查询时间列表
     */
    public static final String GET_TIME_LIST_URL_SUFFIX = "/business/sdk/v1/read/get_time_list";

    /**
     * 本时段的剩余任务列表
     */
    public static final String GET_TIME_LIST_TASK_URL_SUFFIX = "/business/sdk/v1/read/get_time_list_task";

    /**
     * 点击任务
     **/
    public static final String GET_CLICK_TASK_URL_SUFFIX = "/business/sdk/v1/read/get_click_task";

    /**
     * 点击任务
     **/
    public static final String USER_CREATE_URL_SUFFIX = "/bbusiness/sdk/v1/ChannelBusiness/userCreate";

    public static final String UPDATE_NOTIFY_URL_SUFFIX = "/business/sdk/v1/read/update_notify_url";

}

